package square.data;

import java.util.ArrayList;

/**
 *
 * @author Pedro Silva Moreira
 */
public class LocationData {

    private MapData map;
    private Integer x, y, z;
    private ArrayList<ItemData> items = new ArrayList<ItemData>();
    protected CreatureData creature = null;
    private ArrayList<EffectData> effects = new ArrayList<EffectData>();

    public LocationData(MapData map, Integer x, Integer y, Integer z) {
        this.setMap(map);
        this.x = x;
        this.y = y;
        this.z = z;
    }

    // Get & Set
    public MapData getMap() {
        return map;
    }

    public final void setMap(MapData map) {
        this.map = map;
    }

    public Integer getX() {
        return x;
    }

    public Integer getY() {
        return y;
    }

    public Integer getZ() {
        return z;
    }

    public ArrayList<ItemData> getItems() {
        return items;
    }

    public void setItems(ArrayList<ItemData> items) {
        this.items = items;
    }

    public CreatureData getCreature() {
        return creature;
    }
    
    public ArrayList<EffectData> getEffects() {
        return effects;
    }

    public void setEffects(ArrayList<EffectData> effects) {
        this.effects = effects;
    }
}